package io.renren.modules.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.user.dao.PsBannerDao;
import io.renren.modules.user.entity.PsBannerEntity;
import io.renren.modules.user.service.PsBannerService;



@Service("psBannerService")
public class PsBannerServiceImpl implements PsBannerService {
	@Autowired
	private PsBannerDao psBannerDao;
	
	@Override
	public PsBannerEntity queryObject(Long id){
		return psBannerDao.queryObject(id);
	}
	
	@Override
	public List<PsBannerEntity> queryList(Map<String, Object> map){
		return psBannerDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return psBannerDao.queryTotal(map);
	}
	
	@Override
	public void save(PsBannerEntity psBanner){
		psBannerDao.save(psBanner);
	}
	
	@Override
	public void update(PsBannerEntity psBanner){
		psBannerDao.update(psBanner);
	}
	
	@Override
	public void delete(Long id){
		psBannerDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		psBannerDao.deleteBatch(ids);
	}
	
}
